package com.adhere.common.exception;

import com.adhere.common.utils.ObjectUtils;

/**
 * 未能通过的权限认证异常
 *
 * @author WT
 */
public class NotPermissionException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    public NotPermissionException(String permission) {
        super(permission);
    }

    public NotPermissionException(String[] permissions) {
        super(ObjectUtils.stringArrayToString(permissions, ","));
    }
}
